import request from '@/utils/request'

// 查询主采煤层信息列表
export function listCsMineCodeSeamInfo(query) {
    return request({
        url: '/mine/csMineCodeSeamInfo/list',
        method: 'get',
        params: query
    })
}

// 查询主采煤层信息详细
export function getCsMineCodeSeamInfo(id) {
    return request({
        url: '/mine/csMineCodeSeamInfo/' + id,
        method: 'get'
    })
}

// 新增主采煤层信息
export function addCsMineCodeSeamInfo(data) {
    return request({
        url: '/mine/csMineCodeSeamInfo',
        method: 'post',
        data: data
    })
}

// 修改主采煤层信息
export function updateCsMineCodeSeamInfo(data) {
    return request({
        url: '/mine/csMineCodeSeamInfo',
        method: 'put',
        data: data
    })
}

// 删除主采煤层信息
export function delCsMineCodeSeamInfo(id) {
    return request({
        url: '/mine/csMineCodeSeamInfo/' + id,
        method: 'delete'
    })
}
